package com.akk.utils;

import java.util.Random;

public class VerificationCodeUtil {

    public static String getCode(){
        String code = "";
        int max = 9;
        int min = 0;
        String[] source = {"0","1","2","3","4","5","6","7","8","9"};
        for (int index = 0;index < 6;index++){
            Random random = new Random();
            int s = random.nextInt(max)%(max-min+1) + min;
            code += source[s];
        }
        return code;
    }

}
